import { get, post } from '@/utils/request'

export const list = (params) => get('/api/advertisement/list', params)

export const del = (params) => get('/api/advertisement/delete', params)

export const add = (data) => post('/api/advertisement/add', data)

export const batchDelete = (data) => post('/api/advertisement/deleteall', data)

export const adtype = (data) => post('/api/adtype/list', data)